package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.UserRoleDaoIF;
import de.hhbk.feedbackmodul.entities.UserRole;
import de.hhbk.feedbackmodul.remoteInterfaces.UserRoleRemoteIF;

@Stateless
public class UserRoleSessionBean implements UserRoleRemoteIF {

	@EJB
	private UserRoleDaoIF dao;
	
	@Override
	public List<UserRole> getAllUserRoles() throws Exception {
		return dao.getAllUserRoles();
	}

	@Override
	public void createUserRole(UserRole userRole) throws Exception {
		dao.createUserRole(userRole);

	}

	@Override
	public void updateUserRole(UserRole userRole) throws Exception {
		dao.updateUserRole(userRole);

	}

	@Override
	public void deleteUserRole(UserRole userRole) throws Exception {
		dao.deleteUserRole(userRole);
		
	}

}
